.class Lcom/baidu/q;
.super Ljava/util/TimerTask;


# instance fields
.field final synthetic a:Lcom/baidu/o;

.field private b:Landroid/content/Context;

.field private c:Lcom/baidu/s;

.field private d:Ljava/lang/String;


# direct methods
.method public constructor <init>(Lcom/baidu/o;)V
    .locals 0

    iput-object p1, p0, Lcom/baidu/q;->a:Lcom/baidu/o;

    invoke-direct {p0}, Ljava/util/TimerTask;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Landroid/content/Context;Ljava/lang/String;Lcom/baidu/s;)V
    .locals 0

    iput-object p1, p0, Lcom/baidu/q;->b:Landroid/content/Context;

    iput-object p2, p0, Lcom/baidu/q;->d:Ljava/lang/String;

    iput-object p3, p0, Lcom/baidu/q;->c:Lcom/baidu/s;

    return-void
.end method

.method public run()V
    .locals 5

    iget-object v0, p0, Lcom/baidu/q;->b:Landroid/content/Context;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/baidu/q;->c:Lcom/baidu/s;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/baidu/q;->d:Ljava/lang/String;

    if-nez v0, :cond_1

    :cond_0
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "context == "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/baidu/q;->b:Landroid/content/Context;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, " action == "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/baidu/q;->c:Lcom/baidu/s;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, " indexer== "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/baidu/q;->d:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/baidu/bk;->b(Ljava/lang/String;)I

    :goto_0
    return-void

    :cond_1
    const-string v0, "AdRequestWrapper.run"

    iget-object v1, p0, Lcom/baidu/q;->a:Lcom/baidu/o;

    invoke-static {v1}, Lcom/baidu/o;->a(Lcom/baidu/o;)Lcom/baidu/t;

    move-result-object v1

    invoke-virtual {v1}, Lcom/baidu/t;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/baidu/bk;->b(Ljava/lang/String;Ljava/lang/String;)I

    new-instance v0, Lcom/baidu/p;

    iget-object v1, p0, Lcom/baidu/q;->a:Lcom/baidu/o;

    iget-object v2, p0, Lcom/baidu/q;->b:Landroid/content/Context;

    iget-object v3, p0, Lcom/baidu/q;->d:Ljava/lang/String;

    iget-object v4, p0, Lcom/baidu/q;->c:Lcom/baidu/s;

    invoke-direct {v0, v1, v2, v3, v4}, Lcom/baidu/p;-><init>(Lcom/baidu/o;Landroid/content/Context;Ljava/lang/String;Lcom/baidu/s;)V

    invoke-virtual {v0}, Lcom/baidu/p;->start()V

    goto :goto_0
.end method
